package hn.cch.microservice.service_consumer_multi_param.feign.client;


import hn.cch.microservice.service_consumer_multi_param.entity.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient(value = "service-provider-multi-param")
public interface UserFeignClient {

    @GetMapping(value = "/{id}")
    public User user(@PathVariable(value = "id") Long id);

    @GetMapping(value = "/get")
    public String get0(@RequestParam(value = "account") String account,
                       @RequestParam(value = "name") String name);

    @GetMapping(value = "/get")
    public String get1(@RequestParam Map<String, String> map);


    @PostMapping(value = "/post")
    public User post(@RequestBody User user);

}
